package org.jeecg.modules.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.jeecg.modules.system.entity.SysDepart;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

public interface ISysSyncDepartService extends IService<SysDepart> {

    /**
     * 同步单位数据
     * @throws IOException
     * @throws NoSuchAlgorithmException
     * @throws InvalidKeyException
     */
    public void syncCorpData() throws IOException, NoSuchAlgorithmException, InvalidKeyException;


    /**
     * 同步部门数据
     * @throws IOException
     * @throws NoSuchAlgorithmException
     * @throws InvalidKeyException
     */
    public void syncDepartData() throws IOException, NoSuchAlgorithmException, InvalidKeyException;

    /**
     * 同步职务数据
     * @throws IOException
     * @throws NoSuchAlgorithmException
     * @throws InvalidKeyException
     */
    public void syncPositionData() throws IOException, NoSuchAlgorithmException, InvalidKeyException;

}
